﻿//=====================================================
// Copyright © 2017-2018 xuxuzhaozhao
// All rights reserved
// GUID: 41f176fc-6fb2-4406-824d-48a73b7edc0e
// CLR版本: 4.0.30319.42000
// 命名空间名称: xuxuzhaozhao.Blog.Infrastructure
// 文件名: XuxuzhaozhaoDbContext
// 当前系统时间: 2017/11/6 17:07:44
// 当前登录用户名: xuxuzhaozhao
//======================================================

using System.Data.Entity;
using xuxuzhaozhao.Blog.Domain;

namespace xuxuzhaozhao.Blog.Infrastructure.XuEntityFramework
{
    public class XuxuzhaozhaoDbContext : DbContext
    {
        public XuxuzhaozhaoDbContext() : base("xuxuConnectionString") { }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }

        public DbSet<XuArticle> XuArticle { get; set; }
        public DbSet<XuArticleType> XuArticleType { get; set; }
        public DbSet<XuComment> XuComment { get; set; }
        public DbSet<XuLoginLog> XuLoginLog { get; set; }
        public DbSet<XuUser> XuUser { get; set; }
    }
}
